home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / me_cd25.zip / DOC.ZIP / QREF.DOC < prev    next >
Text File  |  1992-11-09  |  4KB  |  130 lines

  1.         ME2  Quick Reference
  2. '^' is the control key, '$' is the escape or meta key, * means Mutt program
  3. A BLOCK is all the lines between dot and mark (inclusive)
  4. Characters                Words
  5. ----------                -----
  6. ^B    previous character        $B    previous word
  7. ^F    next character            $F    next word
  8. ^D    delete next character        $D    delete next word
  9. ^H    backspace            $^H    delete previous word
  10. ^Q  ^^    quote next typed character    $L      lowercase word
  11. ^T      transpose characters        $U      uppercase word
  12.                     $C      capitalize word
  13. Lines
  14. -----
  15. ^A    beginning of line
  16. ^E    end of line
  17. ^P    previous line
  18. ^N    next line
  19. ^K    Delete till newline; if just newline, delete it
  20. ^J    insert newline, match indent of previous line
  21. ^O    open a blank line at dot
  22. $G    move cursor to a given line
  23.  
  24. Windows
  25. -------
  26. ^X^N    scroll window up one line
  27. ^X^P    scroll window down one line
  28. $V    previous page
  29. ^V    next page
  30. $!    move current line to top of window
  31. ^X0     delete current window
  32. ^X1    delete other windows
  33. ^X2    split this window
  34. ^X^     enlarge this window one line
  35. ^X^Z    shrink this window one line
  36. ^Xp    previous window
  37. ^Xo    next window
  38.  
  39. Buffers    (use space bar for buffer name completion, "?" for list)
  40. -------
  41. ^Y    insert the contents of the cut buffer at dot
  42. ^X^O    switch to an existing buffer
  43. ^Xb    switch to a buffer, creating it if it does not exist
  44. ^Xk     delete a buffer
  45. $<    beginning of buffer
  46. $>    end of buffer
  47. ^X^B    show stats on all buffers
  48. ^X=     show stats on current buffer
  49. F-2     next buffer
  50.  
  51. Regions    (the text between the dot and mark)
  52. -------
  53. ^W    delete region and save in the cut buffer
  54. $W    copy region to the cut buffer
  55. ^X^L    convert region to lower case
  56. ^X^U    convert region to upper case
  57. ^X^I    indent block right or left
  58.  
  59. Marks
  60. -----
  61. ^@    set mark
  62. $SPACE    set mark
  63. ^X^X    exchange dot and mark
  64. $^P     save current position in mark ring (ring holds 4 marks)
  65. $P      goto next mark in mark ring
  66.  
  67. Files
  68. -----
  69. ^X^V    read named file, creating a buffer to hold it
  70. ^X^R    read named file into current buffer, erasing old contents
  71. ^Xi    insert named file into buffer at dot
  72. ^X^S    write the current buffer to its associated file
  73. ^X^W    write the current buffer to named file
  74. ^Xf     read next file on command line, creating a buffer to hold it
  75.  
  76. Search and Replace
  77. ------ --- -------
  78. ^S ^^   search forward
  79. ^R      search backward
  80. $Q $%   query search and replace:
  81.       hit "y" to change and continue
  82.       hit "n" to not change and continue
  83.       hit "!" to change all without asking
  84.       hit ^G to abort.
  85. $^S     regular expression search forward
  86. $^Q     regular expression query search and replace
  87.  
  88. Macros
  89. ------
  90. ^X(    start remembering keystrokes
  91. ^X)    stop remembering keystrokes
  92. ^Xe    replay remembered keystrokes
  93.  
  94. Misc
  95. ----
  96. ^Xu  ^_    undo
  97. ^X^C ^C    exit ME
  98. ^G    abort command
  99. ^L    redraw screen
  100. ^U    repeat count for the next command (default = 4)
  101.       eg "^U nnn command"
  102. ^X!    execute a shell command (eg "^X! ls")
  103. ^Z    fork a shell, returning to ME with "exit"
  104. $?    give a keyword and get a list of commands that have that word in them
  105. F-6    show matching () or {}
  106.  
  107. c-mode *    Turned on when editing a buffer with extension of .h or .c
  108. ------
  109. $J    format block as a C comment
  110. ^U$J    format block as a C block comment
  111. $;    toggle block comment mode.  Useful for reediting a block comment
  112. ^J    leave some white space after variable block
  113.  
  114. text-mode *    Turned on when editing a buffer with extension of .doc or .txt
  115. ---------
  116. word wrap column = 72
  117. Enter    newline and match the indent of the previous line
  118. $J    format block ragged right
  119. $S    center the line the cursor is on
  120. underline-line
  121.  
  122. $X commands    (use $X <command-name> to run)
  123. -- --------    use space bar for command completion, "?" for list
  124. bind-to-key        run a command when key is pressed
  125. describe-bindings    find out all the commands
  126. describe-key        find out which command is bound to a key
  127. rectangle commands:     clear-rectangle, copy-rectangle, cut-rectangle,
  128.              erase-rectangle
  129. spell-buffer, spell-region  *check spelling
  130.